// TRState.h: interface and implementation of the CTRState class.
//
/////////////////////////////////////////////////////////////////////////////////
#ifndef __TRSTATE_H_
#define  __TRSTATE_H_

#include <windows.h>


class CTRState  
{
public:
	CTRState(){m_bTamperDetected = false;}
	virtual ~CTRState(){};
	void SetTamperDetected(bool bDetect = true)
			{
			InterlockedExchange(&m_bTamperDetected, bDetect ? 1 : 0);
			}
	bool IsTampered(){return m_bTamperDetected ? true : false;}

protected:
	long m_bTamperDetected;

};



#endif //#ifndef __TRSTATE_H_

